class CreateSongFavSong < ActiveRecord::Migration[6.1]
  def change
    create_table :song_favs_songs do |t|
      t.references :song_fav, null: false, foreign_key: true
      t.references :song, null: false, foreign_key: true
      t.index [:song_fav_id, :song_id], unique: true
      t.index [:song_id, :song_fav_id], unique: true

      t.timestamps
    end
  end
end
